package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 影片
 * </p>
 *
 * @author zhoucl
 * @since 2022-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("movie")
@ApiModel(value="Movie对象", description="影片")
public class Movie implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "影片id")
    @TableId(value = "movie_id", type = IdType.AUTO)
    private Integer movieId;

    @ApiModelProperty(value = "影片分类id")
    private Integer movieCategoryId;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "封面原始图")
    private String originalCover;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "影片最新状态")
    private String newStatus;

    @ApiModelProperty(value = "影片简介")
    private String description;

    @ApiModelProperty(value = "影片状态")
    private Integer status;

    @ApiModelProperty(value = "评论数量")
    @TableField(exist = false)
    private Integer commentNum;

    @TableField(exist = false)
    private String detailPlayListUrl;
}
